package com.sensitive.words.model;

public class SensitiveWordResult {
    private String word; // 匹配到的敏感词
    private int type; // 敏感词的类型（0代表普通敏感词，1代表组合敏感词）

    public SensitiveWordResult(String word, int type) {
        this.word = word;
        this.type = type;
    }

    @Override
    public String toString() {
        // 将匹配结果转换为字符串
        return "MatchResult{" +
                "word='" + word + '\'' +
                ", type=" + type +
                '}';
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
